﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Team6_Algorithms.Filters
{
    /// <summary>
    /// Made by Pascal Schotman
    /// </summary>
    class Blacken2Algorithm
    {
        /// <summary> * DEPRICATED *
        /// This function will apply an black filter to the given image
        /// </summary>
        /// <param name="sourceImage">The input image</param>
        /// <returns>the newly painted bitmap</returns>
        public Bitmap applyFilter(Bitmap sourceImage)
        {
            Bitmap returnImage = new Bitmap(sourceImage);
            Rectangle rect = new Rectangle(0,0,sourceImage.Width,sourceImage.Height);
            Graphics g = Graphics.FromImage(returnImage);
            SolidBrush myBrush = new SolidBrush(Color.Black);
            g.FillRectangle(myBrush, rect);
       
            g.Dispose();
            
            return returnImage;
        }
    }
}
